<?php

defined('JOC') or die;
/*-------------------------------------------------------|
 * page_meta_tags_model Class.                           +
 * ------------------------------------------------------|
 * Description :                                         +
 *       +
 * ------------------------------------------------------|
 * @author : javier.camelis                              |
 * ------------------------------------------------------|
 */
class Page_meta_tag_model extends Model {
  /*-------------------------------------------------------|
   * DataBase table name.                                  +
   * ------------------------------------------------------|
   * Description :                                         +
   * The name of the table that this model will control    +
   * ------------------------------------------------------|
   */
  protected $_table_name  = 'page_meta_tag' ;
  /*-------------------------------------------------------|
   * Primary Key.                                          +
   * ------------------------------------------------------|
   * Description :                                         +
   * Primary Key DataBase table name                       +
   * ------------------------------------------------------|
   */
  protected $_pk_name     = 'meta_tag_id' ;
  
  function Select_by_page_id($page_id = 0)
  {
    $sql = " SELECT * FROM {prefix}{$this->_table_name} WHERE page_id = {$page_id} ORDER BY `order` ASC ; " ;
    $this->_last_result = $this->db()->query($sql) ;
    return $this ;
  }
}


/*
 * ---------------------------------------------------------+
 * End of file page_meta_tag_model.class.php               |
 * ---------------------------------------------------------+
 * located at core/model/page_meta_tag_model.class.php     |
 * ---------------------------------------------------------+
*/